package coml.jiyun.hp.wanandroid.presenter;

import coml.jiyun.hp.wanandroid.base.BasePresenter;
import coml.jiyun.hp.wanandroid.bean.AnswerBean;
import coml.jiyun.hp.wanandroid.model.AnswerModel;
import coml.jiyun.hp.wanandroid.net.ResultCallBack;
import coml.jiyun.hp.wanandroid.view.AnswerView;

public class AnswerPresenter extends BasePresenter<AnswerView>{

    private AnswerModel answerModel;

    @Override
    protected void initModel() {
        answerModel = new AnswerModel();
        addModel(answerModel);
    }
    public void getAnswer(){
        answerModel.getAnswer(new ResultCallBack<AnswerBean>() {
            @Override
            public void onSuccess(AnswerBean answerBean) {
                mView.getAnswer(answerBean);
            }

            @Override
            public void onFail(String msg) {

            }
        });
    }
}
